package me.jiatao.dagger2;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import java.util.List;

import javax.inject.Inject;

import me.jiatao.dagger2.model.Address;
import me.jiatao.dagger2.model.Student;

public class Main2Activity extends AppCompatActivity {

    @Inject
    Student student;

    @Inject
    List<String> stringList;

    @Inject
    List<String> stringList2;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        Address address = new Address();
        address.setCity("Jiangsu");
        address.setStreet("LuJia");
//        DaggerMainActivityComponent
//                .builder()
//                .mainActivityArgsModule(new MainActivityArgsModule(address))
//                .build().inject(this);


//        MainActivityComponent mainActivityComponent = DaggerMainActivityComponent
//                .builder()
//                .mainActivityArgsModule(new MainActivityArgsModule(address))
//                .build();
//
//        DaggerDependenceComponent.
//                builder()
//                .mainActivityComponent(mainActivityComponent)
//                .build()
//                .inject(this);
    }
}
